//
//  KDCalendarPicker.h
//  LaiKeDaoClient
//
//  Created by dongkedi的iMac on 15/11/3.
//  Copyright © 2015年 LKD. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol KDCalendarPickerDelegate <NSObject>

- (void)pickerClickDay:(NSInteger)day Month:(NSInteger)month Year:(NSInteger)year;
- (void)chooseCurrentDateMonth:(NSInteger)month Year:(NSInteger)year;

@end

@interface KDCalendarPicker : UIView<UICollectionViewDelegate , UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
@property (nonatomic , strong)  UICollectionView *collectionView;
@property (nonatomic , strong)  UILabel *monthLabel;
@property (nonatomic , strong)  UILabel *preMonthLabel;
@property (nonatomic , strong)  UILabel *nextMonthLabel;

@property (nonatomic , strong)  UIButton *previousButton;
@property (nonatomic , strong)  UIButton *nextButton;
@property (nonatomic , strong) NSArray *weekDayArray;
@property (nonatomic , strong) NSDate *date;
@property (nonatomic , strong) NSDate *today;
@property (nonatomic , unsafe_unretained) id<KDCalendarPickerDelegate> pickerDelegate;
@property (nonatomic , strong)  NSArray *dataArr;
+ (instancetype)showOnView:(UIView *)view;
- (void)reloadCollectionViewData:(NSArray *)dataArr;

@property (nonatomic , unsafe_unretained) NSInteger  type;//0,带星星的日历,1,不带星星的日历,选择日期页面用

@end
